package com.flyco.modules.sms.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 砍价商品
 * @Author: flyco
 * @Date:   2020-05-18
 * @Version: V1.0
 */
@Data
@TableName("sms_bargain_product")
@ApiModel(value="sms_bargain对象", description="砍价")
public class SmsBargainProduct implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**砍价活动id*/
    @ApiModelProperty(value = "砍价活动id")
	private Long bargainId;
	/**商品id*/
    @Excel(name = "商品id", width = 15)
    @ApiModelProperty(value = "商品id")
	private Long productId;
	/**商品名称*/
    @Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
	private String productName;
	/**商品编码*/
    @Excel(name = "商品编码", width = 15)
    @ApiModelProperty(value = "商品编码")
	private String productSn;
	/**活动商品图片*/
    @Excel(name = "活动商品图片", width = 15)
    @ApiModelProperty(value = "活动商品图片")
	private String productPic;
	/**房间库存控制规则(进:开房时，出:下单时)：0->宽进严出；1->严进宽出*/
    @Excel(name = "房间库存控制规则(进:开房时，出:下单时)：0->宽进严出；1->严进宽出", width = 15)
    @ApiModelProperty(value = "房间库存控制规则(进:开房时，出:下单时)：0->宽进严出；1->严进宽出")
	private Integer stockType;
	/**商品库存*/
    @Excel(name = "商品库存", width = 15)
    @ApiModelProperty(value = "商品库存")
	private Integer stock;
	/**锁定库存*/
    @Excel(name = "锁定库存", width = 15)
    @ApiModelProperty(value = "锁定库存")
	private Integer lockStock;
	/**初始金额(市场价)*/
    @Excel(name = "初始金额(市场价)", width = 15)
    @ApiModelProperty(value = "初始金额(市场价)")
	private java.math.BigDecimal startPrice;
	/**最终金额，默认0(砍价成交价)*/
    @Excel(name = "最终金额，默认0(砍价成交价)", width = 15)
    @ApiModelProperty(value = "最终金额，默认0(砍价成交价)")
	private java.math.BigDecimal lastPrice;
	/**需要砍价的人数*/
    @Excel(name = "需要砍价的人数", width = 15)
    @ApiModelProperty(value = "需要砍价的人数")
	private Integer expectFollowCount;
	/**删除状态：0->未删除；1->已删除*/
    @Excel(name = "删除状态：0->未删除；1->已删除", width = 15)
    @ApiModelProperty(value = "删除状态：0->未删除；1->已删除")
	@TableLogic
	private Integer deleteStatus;
	/**预览图片*/
    @Excel(name = "预览图片", width = 15)
    @ApiModelProperty(value = "预览图片")
	private String previewPic;
	/**描述*/
    @Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
	private String description;
	/**创建人*/
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	/**更新人*/
    @Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private java.util.Date updateTime;
}
